
<a href="/journeys/plan">plan a new Journey now</a>
<table>
<tr>
	<th>Journey ID</th>
	<th>Journey Name</th>
	<th>Action</th>
</tr>

<?php
if(count($journeys)==0){
?>
<tr>
	<td colspan=3>No Journey created yet, <a href="/journeys/plan">plan a new Journey now</a></th>
</tr>

<?php
}
	foreach($journeys as $journey){
?>
<tr>
	<td><?php echo $journey['Journey']['id'] ?></td>
	<td><?php echo $journey['Journey']['journeyname'] ?></td>
	<td><a href="/journeys/view/<?php echo $journey['Journey']['id']?>">View</a> | <a href="/journeys/plan/<?php echo $journey['Journey']['id']?>">Edit</a></td>
</tr>
<?php
	}
?>
